package com.ruoyi.chat.domain;

import com.ruoyi.system.api.domain.SysUser;

public class ChatUser {
    private Long userid;
    private String username;
    private String nickname;
    private String avatar;

    public ChatUser(SysUser sysUser) {
        this.userid = sysUser.getUserId();
        this.username = sysUser.getUserName();
        this.nickname = sysUser.getNickName();
        this.avatar = sysUser.getAvatar();
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "ChatUser{" +
                "userId=" + userid +
                ", userName='" + username + '\'' +
                ", nickName='" + nickname + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
